package com.company.huisuo.biz.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.company.huisuo.R
import com.company.huisuo.base.BaseSingleAdapter
import com.company.huisuo.databinding.ItemRecordBinding
import com.company.huisuo.ext.loadImg

/**
 * 舞蹈预约记录
 */
class DanceBookingAdapter : BaseSingleAdapter<Any, ItemRecordBinding>() {

    private val mSelectPos = arrayListOf(0)

    override val initViewBinding: (LayoutInflater, ViewGroup, Boolean) -> ItemRecordBinding
        get() = ItemRecordBinding::inflate

    override fun convert(holder: SingleViewHolder<ItemRecordBinding>, position: Int, item: Any?) {
        val icon = if (position == 0) {
            R.drawable.ic_record_wait
        } else {
            R.drawable.ic_record_complete
        }
        holder.binding.ivIcon.loadImg(icon)
    }

}